package hotel.base.oversea.exception;

import lombok.Getter;
import lombok.Setter;

/**
 * @Author lmf
 * @Date 2020/6/4 19:19
 **/
@Getter
@Setter
public class MyExeception extends RuntimeException {
    private static final long serialVersionUID = 1L;
    private int code=500;
    private String message;

    public MyExeception(int code, String message) {
        this.code = code;
        this.message = message;
    }
    public MyExeception(String message, Throwable cause) {
        super(message, cause);
        this.code = code;
    }

    public MyExeception(String message,Throwable cause, int code) {
        super(cause);
        this.code = code;
        this.message = message;
    }

}
